<template>
	<view class="container">
		<view class="textContent">
			<view class="textTitle">
				该商品已下架
			</view>
			<view class="desc">
				{{countdown}}秒后自动返回
			</view>
		</view>

		<!-- 提示卡片 -->
		<errHintCard :isShowHint="isShow" @closeHint="closeHint()"></errHintCard>

	</view>
</template>

<script>
	import errHintCard from '@/components/goodsChangeHintCard/goodsChangeHintCard.vue'
	export default {
		components: {
			errHintCard,
			
			
		},
		data() {
			return {
				isShow: false,
				//回退倒计时
				countdown: 3
			}
		},
		methods: {
			closeHint() {
				this.isShow = false;
			},
			goBack() {
                 uni.$goBack();
			}



		},
		mounted() {
			this.timer = setInterval(() => {
				if (this.countdown > 0) {
					this.countdown--;
				} else {
					clearInterval(this.timer);
					uni.$toPage('/pages/cate/cate')
				}
			}, 1000);
		}

	}
</script>

<style scoped lang="scss">
	.container {
		.textContent {
			position: absolute;
			box-sizing: border-box;
			top: 592rpx;
			left: 256rpx;
			display: flex;
			align-items: center;
			flex-direction: column;

			.textTitle {
				font-size: 40rpx;
				font-weight: 400;
				letter-spacing: 0rpx;
				line-height: 57.92rpx;
				color: rgba(0, 0, 0, 1);
			}

			.desc {
				font-size: 32rpx;
				font-weight: 400;
				letter-spacing: 0rpx;
				line-height: 46.34rpx;
				color: rgba(0, 0, 0, 1);
			}
		}
	}
</style>